package oop.finalPackage;

public class Student {

    private String name;
    private final int age = 0;

    public void study(){
        System.out.println("学生必须学习");
    }

    public final void playGame(){
        System.out.println("学生不可以玩游戏");
    }

    public final void playGame(final String gameName){
        System.out.println("学生不可以玩"+gameName+"游戏");
    }

    public static void main(String[] args) {
        Student student = new Student();
        student.name = "tom";
        System.out.println(student.age);

        student.playGame();
        student.playGame("打地鼠");
    }

}
